package com.itqf.dao;

import com.itqf.entity.Car;

import java.lang.reflect.InvocationTargetException;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;

public interface CarDao {
    Car hasCar(int userno, String gid) throws SQLException, InvocationTargetException, IllegalAccessException;

    void updateCar(Car car) throws SQLException;

    void insertCar(Car car) throws SQLException;

    List<Car> selectCarsByUserno(int userno) throws InvocationTargetException, IllegalAccessException, SQLException;

    void deleteCarByCid(String cid);

    void updateByCid(BigDecimal count, String number, String cid) throws SQLException;

    void clearCarByUserno(String userno);
}
